package com.spzx.common.rabbitmq.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.amqp.rabbit.connection.CorrelationData;

@Data
@Schema(description = "消息重试数据模型")
public class SpzxCorrelationData extends CorrelationData {
    //交换机
    private String exchange;
    //路由key
    private String routingKey;
    //消息内容
    private Object data;
    //是否需要重试发送消息
    private boolean retry;
    //重试的最大次数
    private int retryLimit = 3;
    //重试了几次
    private int retryCount = 0;

}
